﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="Edit-View-Shop.aspx.cs" Inherits="Admin_Edit_View_Shop" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <table style="width: 100%;">
                <tr>
                    <td class="style1" colspan="2" 
                        style="border-bottom-style: outset; border-bottom-width: 1px; height: 48px;">
                        <asp:Label ID="lblTitle3" runat="server" Font-Size="16pt" ForeColor="#0099FF" 
                            Text="Add Shop"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style2" style="width: 132px">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style2" style="width: 132px">
                        <asp:Label ID="lblShopID" runat="server" Text="ShopID:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtShopID" runat="server" Enabled="False" Width="236px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2" style="width: 132px; height: 27px;">
                        <asp:Label ID="lblUseShID" runat="server" Text="UseShID:"></asp:Label>
                    </td>
                    <td style="height: 27px">
                        <asp:TextBox ID="txtUseShID" runat="server" Height="22px" Width="234px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2" style="width: 132px; height: 27px;">
                        <asp:Label ID="lblLocation" runat="server" Text="Location:"></asp:Label>
                    </td>
                    <td style="height: 27px">
                        <asp:TextBox ID="txtLocation" runat="server" Height="22px" Width="236px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2" style="width: 132px">
                        <asp:Label ID="lblStartDate" runat="server" Text="StartDate:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtStartDate" runat="server" Height="22px" TextMode="Date" 
                            Width="236px"></asp:TextBox>
                        <asp:CalendarExtender ID="txtStartDate_CalendarExtender" runat="server" 
                            Format="yyyy-MM-dd" PopupButtonID="imgbtnStartDate" 
                            TargetControlID="txtStartDate">
                        </asp:CalendarExtender>
                        <asp:ImageButton ID="imgbtnStartDate" runat="server" 
                            ImageUrl="~/images/Image/Calendar_scheduleHS.png" />
                    </td>
                </tr>
                <tr>
                    <td class="style2" style="width: 132px">
                        <asp:Label ID="lblEndDate" runat="server" Text="EndDate:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEndDate" runat="server" Height="22px" TextMode="Date" 
                            Width="236px"></asp:TextBox>
                        <asp:CalendarExtender ID="txtEndDate_CalendarExtender" runat="server" 
                            Format="yyyy-MM-dd" PopupButtonID="imgbtnEndDate" TargetControlID="txtEndDate">
                        </asp:CalendarExtender>
                        <asp:ImageButton ID="imgbtnEndDate" runat="server" 
                            ImageUrl="~/images/Image/Calendar_scheduleHS.png" />
                    </td>
                </tr>
                <tr>
                    <td class="style2" style="width: 132px">
                        <asp:Label ID="lblNotes" runat="server" Text="Notes:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtNotes" runat="server" Height="63px" TextMode="MultiLine" 
                            Width="237px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style2" style="width: 132px">
                        <asp:Label ID="lblError" runat="server" ForeColor="#FF3300" Text="Label" 
                            Visible="False"></asp:Label>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style2" style="width: 132px">
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="btnSummit" runat="server" BorderStyle="Inset" BorderWidth="1px" 
                            onclick="btnSummit_Click" Text="Summit" />
                    </td>
                </tr>
            </table>
        <br />
            <table style="width: 100%; height: 242px;">
                <tr>
                    <td style="height: 46px; border-bottom-style: outset; border-bottom-width: 1px;">
                        <asp:Label ID="lblShop" runat="server" Font-Bold="True" Font-Size="12pt" 
                            ForeColor="#99CCFF" Text="Shop list"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="height: 32px">
                        <asp:Label ID="lblShopNS" runat="server" Text="Shop Name:"></asp:Label>
                        <asp:TextBox ID="txtSearch" runat="server" Height="22px" 
                            style="margin-left: 59px" Width="263px"></asp:TextBox>
                        <asp:Button ID="btnSearch" runat="server" BorderStyle="Inset" BorderWidth="1px" 
                            onclick="btnSearch0_Click" style="margin-left: 98px" Text="Search" />
                    </td>
                </tr>
                <tr>
                    <td style="height: 24px">
                        <asp:Label ID="lblError1" runat="server" ForeColor="Red" Text="Label" 
                            Visible="False"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="height: 15px">
                        <asp:GridView ID="grvData" runat="server" AllowPaging="True" 
                            AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ShopID" 
                            onpageindexchanging="grvIndex" onrowcancelingedit="grvDataCancel" 
                            onrowediting="grvDataEdit" onrowupdating="grvDataUpload" Width="99%">
                            <Columns>
                                <asp:TemplateField HeaderText="ShopID">
                                    <ItemTemplate>
                                        <asp:Label ID="lblShopID" runat="server" Text='<%# Eval("ShopID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="UseShID">
                                    <ItemTemplate>
                                        <asp:Label ID="UseShID" runat="server" Text='<%# Eval("UseShID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="ShopName">
                                    <ItemTemplate>
                                        <asp:Label ID="lblShopName" runat="server" Text='<%# Eval("ShopName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Location">
                                    <ItemTemplate>
                                        <asp:Label ID="lblLocation" runat="server" Text='<%# Eval("Location") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="StartDate">
                                    <ItemTemplate>
                                        <asp:Label ID="lblStartDate" runat="server" 
                                            Text='<%# Eval("StartDate","{0:yyyy-MM-dd}") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="EndDate">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox6" runat="server" Height="23px" Width="111px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblEndDate" runat="server" 
                                            Text='<%# Eval("EndDate","{0:yyyy-MM-dd}") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Notes">
                                    <ItemTemplate>
                                        <asp:Label ID="lblNotes" runat="server" Text='<%# Eval("Notes") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox5" runat="server" Height="23px" Width="119px"></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:CommandField ShowEditButton="True" />
                            </Columns>
                            <HeaderStyle CssClass="header" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td style="height: 12px">
                    </td>
                </tr>
                <tr>
                    <td style="height: 12px">
                        &nbsp;</td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

